home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 10 / The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso / PC_SIGCD / 07 / 7 / DISK0776.ZIP / A65 / MAC.ASM < prev    next >
Assembly Source File  |  1988-08-23  |  448b  |  14 lines

  1. ;some useful macros to help get you started
  2. ;Assemble this file and carefully examine the listing
  3.  
  4.          ;lo( <expr> ) masks off the least significant byte of <expr>.
  5.          define( lo,
  6.          changequote([,])[($1) & x'0ff]changequote(`,'))
  7.  
  8.          ;hi( <expr> ) isolates the most significant byte of <expr>
  9.          define( hi,`($1) >> 8')
  10.  
  11.          .equ test,x'2211
  12.          .db lo(test)
  13.          .db hi(test)
  14.          .end